import React from 'react'
// 导入web平台
import ReactDOM from 'react-dom/client'
import './index.css'
// 根组件
import App from './App'
// import reportWebVitals from './reportWebVitals';

// 获取到渲染的地方
const root = ReactDOM.createRoot(document.getElementById('root'))
// 把根组件，渲染到id=root的div中去
root.render(
  // todo：这个严格模式，会对后面的代码造成影响，后续再关
  // <React.StrictMode>
  <App />
  // </React.StrictMode>
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
// reportWebVitals();
